package com.wzx.ptplatform.service;

import com.wzx.ptplatform.domain.Resume;
import com.wzx.ptplatform.utils.PtplatformException;
import org.springframework.data.domain.Page;

/**
 * @author 紫煦桉
 */
public interface ResumeService {

    /**
     * findList
     * @param page
     * @param limit
     * @return
     * @throws PtplatformException
     */
    Page<Resume> findList(Integer page, Integer limit) throws PtplatformException;

    /**
     * findById
     * @param id
     * @return
     * @throws PtplatformException
     */
    Resume findById(long id) throws PtplatformException;

    /**
     * saveOrEdit
     * @param resume
     * @return
     * @throws PtplatformException
     */
    boolean saveOrEdit(Resume resume) throws PtplatformException;

    /**
     * deleteById
     * @param id
     * @return
     * @throws PtplatformException
     */
    boolean deleteById(long id) throws PtplatformException;
}
